package com.netease.e;

import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.net.ConnectivityManager;
import android.net.Uri;

public class b
{
  public static final Uri a = Uri.parse("content://telephony/carriers/preferapn");
  private static b c;
  ConnectivityManager b;
  private Cursor d;
  private Context e;
  private d f;
  private c g = new c(this);

  private b(Context paramContext)
  {
    this.e = paramContext;
    this.b = ((ConnectivityManager)this.e.getSystemService("connectivity"));
  }

  /** @deprecated */
  public static b a(Context paramContext)
  {
    monitorenter;
    try
    {
      if (c == null)
        c = new b(paramContext);
      b localb = c;
      monitorexit;
      return localb;
    }
    finally
    {
      localObject = finally;
      monitorexit;
    }
    throw localObject;
  }

  /** @deprecated */
  public void a()
  {
    monitorenter;
    try
    {
      String[] arrayOfString = new String[4];
      arrayOfString[0] = "apn";
      arrayOfString[1] = "name";
      arrayOfString[2] = "port";
      arrayOfString[3] = "proxy";
      b();
      this.d = this.e.getContentResolver().query(a, arrayOfString, null, null, null);
      if (this.d != null)
        this.d.registerContentObserver(this.g);
      monitorexit;
      return;
    }
    finally
    {
      localObject = finally;
      monitorexit;
    }
    throw localObject;
  }

  /** @deprecated */
  public void b()
  {
    monitorenter;
    try
    {
      if (this.d != null)
      {
        this.d.unregisterContentObserver(this.g);
        this.d.close();
        this.d = null;
        this.f = null;
      }
      monitorexit;
      return;
    }
    finally
    {
      localObject = finally;
      monitorexit;
    }
    throw localObject;
  }

  /** @deprecated */
  // ERROR //
  public d c()
  {
    // Byte code:
    //   0: aconst_null
    //   1: astore_1
    //   2: aload_0
    //   3: monitorenter
    //   4: aload_0
    //   5: getfield 55	com/netease/e/b:b	Landroid/net/ConnectivityManager;
    //   8: invokevirtual 105	android/net/ConnectivityManager:getActiveNetworkInfo	()Landroid/net/NetworkInfo;
    //   11: astore_3
    //   12: aload_3
    //   13: ifnull +14 -> 27
    //   16: aload_3
    //   17: invokevirtual 111	android/net/NetworkInfo:getType	()I
    //   20: istore 4
    //   22: iload 4
    //   24: ifeq +7 -> 31
    //   27: aload_0
    //   28: monitorexit
    //   29: aload_1
    //   30: areturn
    //   31: aload_0
    //   32: getfield 98	com/netease/e/b:f	Lcom/netease/e/d;
    //   35: ifnull +11 -> 46
    //   38: aload_0
    //   39: getfield 98	com/netease/e/b:f	Lcom/netease/e/d;
    //   42: astore_1
    //   43: goto -16 -> 27
    //   46: aload_0
    //   47: getfield 84	com/netease/e/b:d	Landroid/database/Cursor;
    //   50: ifnonnull +7 -> 57
    //   53: aload_0
    //   54: invokevirtual 113	com/netease/e/b:a	()V
    //   57: aload_0
    //   58: getfield 84	com/netease/e/b:d	Landroid/database/Cursor;
    //   61: ifnull -34 -> 27
    //   64: aload_0
    //   65: getfield 84	com/netease/e/b:d	Landroid/database/Cursor;
    //   68: invokeinterface 117 1 0
    //   73: ifeq -46 -> 27
    //   76: new 119	com/netease/e/d
    //   79: dup
    //   80: aload_0
    //   81: invokespecial 120	com/netease/e/d:<init>	(Lcom/netease/e/b;)V
    //   84: astore_1
    //   85: aload_1
    //   86: aload_0
    //   87: getfield 84	com/netease/e/b:d	Landroid/database/Cursor;
    //   90: aload_0
    //   91: getfield 84	com/netease/e/b:d	Landroid/database/Cursor;
    //   94: ldc 64
    //   96: invokeinterface 124 2 0
    //   101: invokeinterface 128 2 0
    //   106: putfield 131	com/netease/e/d:a	Ljava/lang/String;
    //   109: aload_1
    //   110: aload_0
    //   111: getfield 84	com/netease/e/b:d	Landroid/database/Cursor;
    //   114: aload_0
    //   115: getfield 84	com/netease/e/b:d	Landroid/database/Cursor;
    //   118: ldc 66
    //   120: invokeinterface 124 2 0
    //   125: invokeinterface 128 2 0
    //   130: putfield 133	com/netease/e/d:b	Ljava/lang/String;
    //   133: aload_0
    //   134: getfield 84	com/netease/e/b:d	Landroid/database/Cursor;
    //   137: aload_0
    //   138: getfield 84	com/netease/e/b:d	Landroid/database/Cursor;
    //   141: ldc 68
    //   143: invokeinterface 124 2 0
    //   148: invokeinterface 128 2 0
    //   153: astore 5
    //   155: aload_1
    //   156: aload 5
    //   158: invokestatic 138	java/lang/Integer:parseInt	(Ljava/lang/String;)I
    //   161: putfield 141	com/netease/e/d:c	I
    //   164: aload_1
    //   165: aload_0
    //   166: getfield 84	com/netease/e/b:d	Landroid/database/Cursor;
    //   169: aload_0
    //   170: getfield 84	com/netease/e/b:d	Landroid/database/Cursor;
    //   173: ldc 70
    //   175: invokeinterface 124 2 0
    //   180: invokeinterface 128 2 0
    //   185: putfield 143	com/netease/e/d:d	Ljava/lang/String;
    //   188: ldc 145
    //   190: new 147	java/lang/StringBuilder
    //   193: dup
    //   194: invokespecial 148	java/lang/StringBuilder:<init>	()V
    //   197: ldc 150
    //   199: invokevirtual 154	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   202: aload_1
    //   203: getfield 131	com/netease/e/d:a	Ljava/lang/String;
    //   206: invokevirtual 154	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   209: ldc 156
    //   211: invokevirtual 154	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   214: aload_1
    //   215: getfield 133	com/netease/e/d:b	Ljava/lang/String;
    //   218: invokevirtual 154	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   221: ldc 158
    //   223: invokevirtual 154	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   226: aload_1
    //   227: getfield 141	com/netease/e/d:c	I
    //   230: invokevirtual 161	java/lang/StringBuilder:append	(I)Ljava/lang/StringBuilder;
    //   233: ldc 163
    //   235: invokevirtual 154	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   238: aload_1
    //   239: getfield 143	com/netease/e/d:d	Ljava/lang/String;
    //   242: invokevirtual 154	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   245: invokevirtual 167	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   248: invokestatic 172	com/netease/g/b:e	(Ljava/lang/String;Ljava/lang/String;)V
    //   251: aload_0
    //   252: aload_1
    //   253: putfield 98	com/netease/e/b:f	Lcom/netease/e/d;
    //   256: goto -229 -> 27
    //   259: astore_2
    //   260: aload_0
    //   261: monitorexit
    //   262: aload_2
    //   263: athrow
    //   264: astore 6
    //   266: aload_1
    //   267: invokestatic 177	android/net/Proxy:getDefaultPort	()I
    //   270: putfield 141	com/netease/e/d:c	I
    //   273: goto -109 -> 164
    //
    // Exception table:
    //   from	to	target	type
    //   4	22	259	finally
    //   31	155	259	finally
    //   155	164	259	finally
    //   164	256	259	finally
    //   266	273	259	finally
    //   155	164	264	java/lang/NumberFormatException
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.e.b
 * JD-Core Version:    0.6.0
 */